package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    void saveOrderDetail(OrderDetail orderDetail);





    /**
     * 根据id查询菜品
     * @param id
     * @return
     */
    List<OrderDetail> findByOrderId(Long id);

    /**
     * 根据名字查询数量
     * @param orderDetail
     * @return
     */
    Integer findByNameAndFlavorCount(OrderDetail orderDetail);

    List<OrderDetail> getAllByOrderId(Long id);

    List<OrderDetail> findOrderDetailList(Long id);


}
